<?php
//session_start();
require_once("classes/page.class.php");
require_once("core_funcs.php");

$action = isset($_GET["a"])?$_GET["a"]:(isset($_POST["a"])?$_POST["a"]:"");

switch($action){
	case "about":
		$page = aboutUs();
		die();
		break;
	case "login":
		$page = new page();
		$page->userLogin($_POST["user"],$_POST["pass"]);
		break;
	case "logout":
		$sec = new security();
		$sec->logout();
		//$page = new page();
		//$page->logout();
		break;
	default:
		$page = new page();
		$page->displayPage();
		break;
}
?>